/*
 * Wire
 * Copyright (C) 2018 Wire Swiss GmbH
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see http://www.gnu.org/licenses/.
 *
 */

.base-toggle,
.info-toggle {
  display: flex;
  flex-direction: column;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--background-fade-8);
  margin-bottom: 10px;

  .info-toggle__name {
    .text-medium;
    margin: 0;
    color: var(--black);
    cursor: pointer;
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-lg);
  }

  .info-toggle__row {
    display: flex;
    justify-content: space-between;
    font-size: var(--font-size-base);
    gap: 10px;
    line-height: var(--line-height-lg);
  }

  .info-toggle__details {
    margin-top: 2px;
    margin-bottom: 0;
    font-size: var(--font-size-xsmall);
    line-height: var(--line-height-sm);
  }

  .slider.disabled {
    opacity: 0.4;
    pointer-events: none;
  }

  .modal-style & {
    margin-bottom: 16px;

    .info-toggle__row {
      padding: 10px;
      border: none;
      border-radius: 4px;
      margin: 0 -8px;
    }

    .info-toggle__details {
      margin: 0 2px 0;
      color: var(--gray-90);
      font-size: var(--font-size-small);
      line-height: var(--line-height-xs);
    }
  }
}

body.theme-dark {
  .base-toggle,
  .info-toggle {
    .info-toggle__name {
      color: var(--white);
    }

    .info-toggle__details {
      color: var(--gray-20);
    }
  }
}
